package com.hbter630.change.service;

import com.hbter630.change.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hbter630.change.utils.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xbfinal
 * @since 2023-05-24
 */
public interface UserService extends IService<User> {

    Result login(User user, HttpServletRequest request);
    Result info(String token);
    Result checkInfo();
    Result logout();

    Result getlist();

    Result getListBytt(User user);
    Result delete(String id);

    boolean saveAndUpdata(User user);

    Result getListByPage(Long current, Long limit);


    Result loginOut();

    Result checkEmail(String email);

    Result checkUseName(String username);


}
